#!/bin/bash -ex
set -eu -o pipefail

case "$(lsb_release -cs)" in
	xenial)
		# need to overwrite because of an ubuntu packaging error(!)
		apt-get -y -o Dpkg::Options::="--force-overwrite" install openjdk-9-jre openjdk-9-jdk 
		;;
	*)
		apt-get -y install openjdk-7-jre openjdk-7-jdk 
		;;
esac
